31c4e97e679d849d1c89715e078304822c6e16e3,xstream/src/java/com/thoughtworks/xstream/core/util/Fields.java,Fields,read,#Field#Object#,78

Before Change


    }

    public static Object read(final Field field, final Object instance) {
        try {
            return field.get(instance);
        } catch (final IllegalAccessException e) {
            final String message = "Could not read " + field.getType().getName() + "." + field.getName() + " field";
            throw new ObjectAccessException(message, e);
        } catch (final NoClassDefFoundError e) {
            final String message = "Could not read " + field.getType().getName() + "." + field.getName() + " field";
            throw new ObjectAccessException(message, e);
        }
    }
}

After Change


    }

    public static Object read(final Field field, final Object instance) {
        try {
            return field.get(instance);
        } catch (final SecurityException e) {
            throw wrap("Cannot read field", field.getType(), field.getName(), e);
        } catch (final IllegalArgumentException e) {
            throw wrap("Cannot read field", field.getType(), field.getName(), e);
        } catch (final IllegalAccessException e) {
            throw wrap("Cannot read field", field.getType(), field.getName(), e);
        } catch (final NoClassDefFoundError e) {
            throw wrap("Cannot read field", field.getType(), field.getName(), e);
        }
    }